'use strict'

var checkRegisterForm = function(){
    var  pwd = document.getElementById('password');
    md5_pwd.value = toMD5(pwd.value);
    return true;
}

//测试:
;(function(){
    window.testFormHandler = checkRegisterForm;
    var form = document.getElementById('test-register');
    if(form.dispatchEvent){
        var event = new Event('submit',{
            bubbles: true,
            cancelable: true
        });
        form.dispatchEvent(event);
    }else{
        form.fireEvent('onsubmit');
    }
})();